import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '../views/home/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/search',
    name: 'Search',
    component: () => import('../views/home/Search.vue')
  },


  {
    path: '/movie',
    name: 'Movie',
    component: () => import('../views/movie/Movie.vue')
  },
  {
    path: '/movieDetail/:id',
    name: 'MovieDetail',
    component: () => import('../views/movie/MovieDetail.vue')
  },


  {
    path: '/my',
    name: 'My',
    component: () => import('../views/my/My.vue')
  },
  {
    path: '/orderList',
    name: 'OrderList',
    component: () => import('../views/my/OrderList.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/my/Login.vue')
  },

  {
    path: '/cineamsList',
    name: 'CineamsList',
    component: () => import('../views/cineams/cineamsList.vue')
  },
  {
    path: '/cinemaDetail/:movieTheatreId',
    name: 'CinemaDetail',
    component: () => import('../views/cineams/cinemaDetail.vue')
  },


  {
    path: '/selectionSeat/:movieId/:movieShowId',
    name: 'SelectionSeat',
    component: () => import('../views/order/SelectionSeat.vue')
  },


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
